<pro-header></pro-header>
<nz-card>
    <div nz-row style="margin-bottom: 10px;">
        <div nz-col [nzSpan]="6">
            <button nz-button [nzType]="'primary'" routerLink="../typeadd">添加</button>
        </div>
    </div>

    <nz-table #nzTable [nzAjaxData]="data"
              [nzIsPagination]='false'>
        <thead nz-thead>
        <tr>
            <th nz-th><span>序号</span></th>
            <th nz-th><span>栏目名称</span></th>
            <th nz-th><span>订阅数</span></th>
            <th nz-th><span>操作</span></th>
        </tr>
        </thead>
        <tbody nz-tbody>
        <tr nz-tbody-tr *ngFor="let item of nzTable.data;let i =index">
            <td nz-td>{{i+1}}</td>
            <td nz-td>{{item.title}}</td>
            <td nz-td>{{item.count}}</td>
            <td nz-td>
                <a [routerLink]="['../typeadd',item.id]">编辑</a>
                <span nz-table-divider></span>
                <a (click)="del(item, i)">删除</a>
            </td>
        </tr>

        </tbody>
    </nz-table>
</nz-card>
